<include file="Public:header" />
<include file="Public:leftside" />

<div class="main-content">
	<div class="breadcrumbs breadcrumbs-fixed" id="breadcrumbs">
		<ul class="breadcrumb">
			<li> <i class="icon-home home-icon"></i> <a href="/">首页</a> </li>
			<li class="active">店铺代言</li>
		</ul>
	</div>
	<div class="page-content">
		<div class="row padder-v">
			<div class="col-sm-4">
				<a href="__CONTROLLER__/add_angel/" class="btn btn-sm btn-primary"><i class="fa fa-plus"></i> 添加代言 </a>
			</div>
		</div>


    <div class="listContent">
    	<table class="table table-striped table-bordered table-hover" width="100%" border="0" cellpadding="0" cellspacing="0" >
            <thead>
        	<tr class="f_black bg_gray">

                <th style="width: 50px;" align="center">ID</th>
                <th style="width: 30%;">用户</th>
                <th style="width: 30%;">推荐人</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
				<foreach name="list" item="v">
					<tr>
						<td>{$v.id}</td>
						<td>{$v.phone}</td>
						<td>
							<php>
								if($v['add_type']==0){
									echo "总后台";
								}else{
									echo "店铺";
								}
							</php>
						</td>
						<td>
							<php>
								if($v['add_type']==1){
							</php>
							<a href="{:U('shop/del_angel',array('id'=>$v['id']))}" onclick="return confirm('确定删除当前数据？')">删除</a>
							<php>
								}else{
							</php>
							无
							<php>}</php>
						</td>
					</tr>
				</foreach>
            </tbody>
        </table>

    </div>
   </div>
</div>

<include file="Public:footer" />